package com.limit.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

/** 
 * 后台角色<br/>
 * @author maoyun(maoyun0903@163.com)
 * @date 2014-3-27 上午11:57:30 
 * @version V1.0
 */

public class Actor extends Model<Actor> {

	
	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = 1L;
	public final static Actor dao = new Actor();
	
	
	public List<Actor> getAllList(){
		
		return (List<Actor>) super.find("select * from actor");
		
	}
	
	/**
	 * 角色-权限中间表actor_module
	 */
	public List<ActorModule> getAdminModuleList(){
		return ActorModule.dao.find("select * from actor_module where actor_id=? order by module_id asc",get("id"));
	}
	
	
}
